wx.config({
	debug: false,
	appId: jsdkAppid,
	timestamp: jsdkTimestamp,
	nonceStr: jsdkNonceStr,
	signature: jsdkSignature,
	jsApiList: [
  		'onMenuShareTimeline',
  		'onMenuShareAppMessage'
	]
});

wx.ready(function(){
	wx.onMenuShareTimeline({
	    title: shareTitle, // 分享标题
	    link: shareUrl, // 分享链接
	    imgUrl: shareImg, // 分享图标
	    success: function () { 
	       // alert("分享成功");
	    },
	    cancel: function () { 
	      //  alert("你已经取消分享");
	    }
	});
	
	wx.onMenuShareAppMessage({
	    title: shareTitle, // 分享标题
	    desc: shareDesc, // 分享描述
	    link: shareUrl, // 分享链接
	    imgUrl: shareImg, // 分享图标
	    success: function () { 
	    	//alert("分享成功");
	    },
	    cancel: function () { 
	    	//alert("你已经取消分享");
	    }
	});
});